const state = {
  // 学科列表
  subjectList: [],
  //   目录标签
  directoryList: []
}
const mutations = {
  // 设置学科列表
  setSubjectList(state, val) {
    state.subjectList = val
  },
  // 设置学科列表
  setDirectoryList(state, val) {
    state.directoryList = val
  }
}
const actions = {
  getSubjectList({ commit }, value) {
    commit('setSubjectList', value)
  },
  getDirectoryList({ commit }, value) {
    commit('setDirectoryList', value)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
